package com.cskaoyan.javse.oop2._3review;

/**
 * 测试equals
 *
 * @since 11:44
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class Demo2 {
    public static void main(String[] args) {
        String s1 = new String("123");
        String s2 = new String("123");
        System.out.println(s1 == s2);
        System.out.println(s1.equals(s2));
        System.out.println("123".equals(s1));
    }
}
